﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VM.Common.Result;
using VM.Entity.EntityDto.Order;

namespace VM.IBLL.IOrder
{
    public interface IOrderBLL : IBaseBLL
    {

        /// <summary>
        /// 批量添加订单
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public ApiDataResult<List<getOrderMainInfoDto>> addOrder(addMultyOrderDto obj,int UserId);

        /// <summary>
        /// 获取订单列表
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public ApiDataResult<PagingData<getOrderListDto>> getOrderList(int userId, int status, string OrderInfo, int pageIndex, int pageSize);

        /// <summary>
        /// 删除订单
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="shopCarId"></param>
        /// <returns></returns>
        public ApiResult deleteOrderById(int userId, int shopCarId);
        public ApiDataResult<getOrderInfoDto> getOrderInfoById(int id);
        public ApiResult cancelOrderById(int id);
        public ApiResult updateOrderStatusByIds(List<updateOrderStatusByIdDto> obj, int userId);
        public ApiResult updateOrderQty(List<updateStockQtyDto> obj);
        public ApiResult checkStockQty(List<updateStockQtyDto> obj);
    }
}
